package com.sywb.chuangyebao.view;

import android.os.Bundle;
import android.widget.TextView;

import com.sywb.chuangyebao.R;
import com.sywb.chuangyebao.contract.Contract;

import butterknife.BindView;

/**
 * 手机号码绑定成功提示页面
 */
public class BindMobileSuccessActivity extends ActionbarActivity<Contract.Presenter> implements Contract.View {

    @BindView(R.id.tvPhoneNo_activity_bind_mobile_success)
    TextView mTvPhoneNo;

    private String mPhoneNo;

    @Override
    public int getLayoutId(Bundle bundle) {
        return R.layout.activity_bind_mobile_success;
    }

    @Override
    public void initView(Bundle bundle) {
        super.initView(bundle);
        setTitle(R.string.bind_phone);
        if (bundle == null) {
            mPhoneNo = getIntent().getStringExtra("p0");
        } else {
            mPhoneNo = bundle.getString("p0");
        }

        mTvPhoneNo.setText(mPhoneNo);
    }
}
